# V1 API包初始化
from flask import Blueprint
from flask_restx import Api

# 创建蓝图
v1_bp = Blueprint('v1', __name__, url_prefix='/api/v1')

# 创建API实例
api = Api(v1_bp, doc=False, version='1.0', title='Mini-App API', description='小程序API')

# 导入并注册模块
from . import dict
from . import matching
from . import banners

# 注册蓝图函数
def register_v1_blueprints(app):
    """注册V1版本API蓝图"""
    app.register_blueprint(v1_bp)
    
    # 注册子蓝图
    from .banners import banners_bp
    app.register_blueprint(banners_bp) 